package com.qdaily.ui.net.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created with IntelliJ IDEA.
 * User: Felix
 * Date: 4/3/15
 * Time: 17:38
 * QQ:74104
 * Email:lovejiuwei@gmail.com
 */
public class LikeItFeeds implements Parcelable {
    private int praise_count = 0;

    public int getPraise_count() {
        return praise_count;
    }

    public void setPraise_count(int praise_count) {
        this.praise_count = praise_count;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.praise_count);
    }

    public LikeItFeeds() {
    }

    private LikeItFeeds(Parcel in) {
        this.praise_count = in.readInt();
    }

    public static final Parcelable.Creator<LikeItFeeds> CREATOR = new Parcelable.Creator<LikeItFeeds>() {
        public LikeItFeeds createFromParcel(Parcel source) {
            return new LikeItFeeds(source);
        }

        public LikeItFeeds[] newArray(int size) {
            return new LikeItFeeds[size];
        }
    };

    @Override
    public String toString() {
        return "LikeItFeeds{" +
                "praise_count=" + praise_count +
                '}';
    }
}
